public ResponseAddWorkprice AddWorkprice(RequestAddWorkprice request) { var item = new WorkPrice() { ContactPrice = request.ContactPrice, ExactPrice = request.ExactPrice, Name = request.Name, Price = request.Price, Unity = request.Unity }; dbManager.AddWorkprice(item); return(new ResponseAddWorkprice()); }
public void AddWorkprice(WorkPrice item) { repository.WorkPrices.DbSet.Add(item); repository.SaveChanges(); }
public void UpdateWorkprice(WorkPrice item) { repository.WorkPrices.DbSet.Update(item); repository.SaveChanges(); }