public ResponseDto <bool> Delete([FromBody] BatchAssignment batchAssign) { ResponseDto <bool> response = new ResponseDto <bool>(_commonResource); try { _batchAssignmentService.Delete(batchAssign); response.Data = true; } catch { return(response.HandleException(response)); } return(response); }
public ResponseDto <List <BatchAssignVM> > Save([FromBody] BatchAssignment assignment) { ResponseDto <List <BatchAssignVM> > response = new ResponseDto <List <BatchAssignVM> >(_commonResource); try { response.Data = _batchAssignmentService.Save(assignment); return(response); } catch (CosmoBusinessException ex) { return(response.HandleCustomException(response, ex)); } catch { return(response.HandleException(response)); } }
public void Delete(BatchAssignment batchAssignment) { _batchAssignmentRepository.Delete(batchAssignment); }
public List <BatchAssignVM> Save(BatchAssignment assignment) { return(_batchAssignmentRepository.SaveBatchAssignVMs(assignment)); }