public bool Delete(SELLS_TYPESVM entity) { SELLS_TYPES emp = new SELLS_TYPES { SELL_TYPE_ID = entity.SELL_TYPE_ID }; _repo.Delete(emp, entity.SELL_TYPE_ID); return(true); }
public Task <bool> DeleteAsync(SELLS_TYPESVM entity) { return(Task.Run <bool>(() => { SELLS_TYPES emp = new SELLS_TYPES { SELL_TYPE_ID = entity.SELL_TYPE_ID }; _repo.Delete(emp, entity.SELL_TYPE_ID); return true; })); }
public bool Update(SELLS_TYPESVM entity) { SELLS_TYPES emp = new SELLS_TYPES { SELL_TYPE_ID = entity.SELL_TYPE_ID, AddedBy = entity.AddedBy, AddedOn = entity.AddedOn, SELL_TYPE_AR_NAME = entity.SELL_TYPE_AR_NAME, SELL_TYPE_EN_NAME = entity.SELL_TYPE_EN_NAME, UpdatedBy = entity.UpdatedBy, updatedOn = entity.updatedOn, SHOW_OR_NOT = entity.SHOW_OR_NOT, Disable = entity.Disable }; _repo.Update(emp, emp.SELL_TYPE_ID); return(true); }
public Task <bool> UpdateAsync(SELLS_TYPESVM entity) { return(Task.Run <bool>(() => { SELLS_TYPES emp = new SELLS_TYPES { SELL_TYPE_ID = entity.SELL_TYPE_ID, AddedBy = entity.AddedBy, AddedOn = entity.AddedOn, SELL_TYPE_AR_NAME = entity.SELL_TYPE_AR_NAME, SELL_TYPE_EN_NAME = entity.SELL_TYPE_EN_NAME, UpdatedBy = entity.UpdatedBy, updatedOn = entity.updatedOn, SHOW_OR_NOT = entity.SHOW_OR_NOT, Disable = entity.Disable }; _repo.Update(emp, emp.SELL_TYPE_ID); return true; })); }
public async Task <IHttpActionResult> delete([FromBody] SELLS_TYPESVM entity) { return(Ok(await SellsTypesService.DeleteAsync(entity))); }
public async Task <IHttpActionResult> add([FromBody] SELLS_TYPESVM entity) { return(Ok(await SellsTypesService.InsertAsync(entity))); }