public bool SaveDetails(CategoryDto newDetails) { this.category = newDetails.DtoToEntity(); if (this._category.Insert(this.category).IsNull()) { return(false); } return(true); }
public bool UpdateDetails(CategoryDto newDetails) { //var oldDetails = FindById(newDetails.CustomerId); var details = newDetails.DtoToEntity(); if (_category.Update2(details).IsNull()) { return(false); } return(true); }