public bool Update(Models.Domain.LogCategory Log) { _databaseContext.Update(Log); int result = _databaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }
public bool Delete(Guid id) { Models.Domain.LogCategory model = this.GetById(id); _databaseContext.Remove(model); int result = _databaseContext.SaveChanges(); return(Convert.ToBoolean(result)); }
public bool Update(Models.Domain.LogCategory status) { return(_logCategoryRepository.Update(status)); }
public Guid Save(Models.Domain.LogCategory status) { _logCategoryRepository.Save(status); return(status.Id); }
public Guid Save(Models.Domain.LogCategory Log) { _databaseContext.Add(Log); _databaseContext.SaveChanges(); return(Log.Id); }
public Models.Domain.LogCategory GetById(Guid id) { Models.Domain.LogCategory model = _databaseContext.Set <Models.Domain.LogCategory>().Where(p => p.Id == id).FirstOrDefault(); return(model); }