This is what I have, But I think I can write it in a sohrter and more efficient way too, what do you suggest?
string actionString= string.Empty;
if (auditAction == DSRHelper.SaveStatusEnum.Save)
{
actionString = Properties.Resources.SAVE_ACTION_MESSAGE;
}
if (auditAction == DSRHelper.SaveStatusEnum.Complete && model.Dirty)
{
actionString = "Save'NComplete";
}
else if(auditAction == DSRHelper.SaveStatusEnum.Complete)
{
actionString = "OnlyComplete.";
}
EDIT: Ok I changed it a little bit, better now?
string actionString= string.Empty;
if (auditAction == DSRHelper.SaveStatusEnum.Save)
{
actionString = Properties.Resources.SAVE_ACTION_MESSAGE;
}
else if (auditAction == DSRHelper.SaveStatusEnum.Complete )
{
if (model.Dirty)
{
actionString = "Save'NComplete";
}
else
{
actionString = "OnlyComplete";
}
}