public async Task <IActionResult> Insert([FromBody] ProductViewModel model) { if (ModelState.IsValid) { await _productService.Insert(_mapper.Map <Business.Models.Product>(model)); if (ValidOperation()) { return(Ok()); } else { return(BadRequest(_notifier.GetNotification())); } } return(BadRequest(ModelState)); }