public bool Atualizar(ProntuarioModel model) { _db = new ProntuarioData(); var updated = _db.Update(model); if (updated > 0) { return(true); } else { return(false); } }
public bool Cadastrar(ProntuarioModel model) { _db = new ProntuarioData(); var save = _db.Save(model); if (save > 0) { return(true); } else { return(false); } }
public List <ProntuarioModel> GetAll() { _db = new ProntuarioData(); return(_db.GetAll()); }
public ProntuarioModel GetById(Guid id) { _db = new ProntuarioData(); return(_db.GetById(id)); }