public List <Administration> GetAll() { try { getDatalayer = new LiteDbAdministrationDataMapper(); var data = getDatalayer.GetAll(); return(data); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
public bool Update(Administration item) { try { getDatalayer = new LiteDbAdministrationDataMapper(); if (item != null && item.Id > 0) { getDatalayer.Update(item); } return(true); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }