예제 #1
0
        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);
        }
예제 #2
0
 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;
     }));
 }
예제 #3
0
        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);
        }
예제 #4
0
 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)));
 }