public string BatchCreateAdd(BatchCreateVM vm) { var batch = Mapper.Map <Batch>(vm); if (ModelState.IsValid) { bool isAdded = _batchManager.AddBatch(batch); if (isAdded) { return("Successfully Saved"); } else { return("Did not saved."); } } return("Sorry! Error Occured."); }