public static Setare GetSetare() { if (setareItem == null) { setareItem = SetareDataHelper.GetInstance().GetAll().Cast <Setare>().FirstOrDefault(); } return(setareItem); }
public override PersistenceResult Save() { var pr = new PersistenceResult(); try { SetareDataHelper.GetInstance().Update(PropertiesNamesWithValues, 0); pr.Status = Enums.StatusEnum.Saved; pr.Message = StringSaveSuccess; } catch (Exception ex) { pr.ExceptionOccurred = ex; pr.Status = Enums.StatusEnum.Errors; pr.Message = StringSaveFail; } return(pr); }