Exemple #1
0
        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());
        }
Exemple #2
0
 public void AddWorkprice(WorkPrice item)
 {
     repository.WorkPrices.DbSet.Add(item);
     repository.SaveChanges();
 }
Exemple #3
0
 public void UpdateWorkprice(WorkPrice item)
 {
     repository.WorkPrices.DbSet.Update(item);
     repository.SaveChanges();
 }