public bool Update(CostCalculationTypeVM entity)
        {
            CostCalculationType ig = new CostCalculationType
            {
                ARName    = entity.ARName,
                Code      = entity.Code,
                LatName   = entity.LatName,
                ID        = entity.ID,
                Notes     = entity.Notes,
                AddedBy   = entity.AddedBy,
                AddedOn   = entity.AddedOn,
                Disable   = entity.Disable,
                UpdatedBy = entity.UpdatedBy,
                UpdatedOn = entity.UpdatedOn
            };

            costCalculationTypeRepo.Update(ig, ig.ID);
            return(true);
        }
 public Task <bool> UpdateAsync(CostCalculationTypeVM entity)
 {
     return(Task.Run <bool>(() =>
     {
         CostCalculationType ig = new CostCalculationType
         {
             ARName = entity.ARName,
             Code = entity.Code,
             LatName = entity.LatName,
             ID = entity.ID,
             Notes = entity.Notes,
             AddedBy = entity.AddedBy,
             AddedOn = entity.AddedOn,
             Disable = entity.Disable,
             UpdatedBy = entity.UpdatedBy,
             UpdatedOn = entity.UpdatedOn
         };
         costCalculationTypeRepo.Update(ig, ig.ID);
         return true;
     }));
 }
 public async Task <IHttpActionResult> delete([FromBody] CostCalculationTypeVM entity)
 {
     return(Ok(await costCalculationTypeService.DeleteAsync(entity)));
 }
 public async Task <IHttpActionResult> add([FromBody] CostCalculationTypeVM entity)
 {
     return(Ok(await costCalculationTypeService.InsertAsync(entity)));
 }