public async Task <IActionResult> StoreShipment([FromBody] ShipmentViewModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (await _generalService.AddShipment(model)) { return(new OkObjectResult(new { Message = "Success" })); } return(BadRequest(Errors.AddErrorToModelState("Message", "Somethins Went Wrong", ModelState))); }