public IActionResult FieldValueRow(int?publicationId, int?templateId) { IEnumerable <FieldValueVM> fieldValues; if (publicationId != null && publicationId != 0) { Publication pub = publicationService.GetPublicationById(publicationId); fieldValues = publicationService.GetFieldValueVmOfPublication(pub); } else { fieldValues = publicationService.GenerateNewFieldValue(templateId); } return(PartialView(fieldValues)); }