public ActionResult AddTag(AddTagModel model) { if (!ModelState.IsValid) { model.SetAlert("Tag could not be added", AlertType.ClienError); return(JsonResultWithView(JsonActionResultType.ActionError, string.Empty, model)); } var tagConvertter = new AddTagConverter(); _customerService.AddTag(tagConvertter.ToTag(model)); return(JsonRedirectResult(JsonActionResultType.ActionSuccess, Url.Action("EditCustomer", "Customer", new { id = model.CustomerGuid }))); }