public Response <PersonAdressViewModel> Create([FromBody] PersonViewModelSave model) { Response <PersonAdressViewModel> result = new Response <PersonAdressViewModel>(); if (model.PersonNummer != String.Empty && !String.IsNullOrEmpty(model.ForNamn) && !String.IsNullOrEmpty(model.EfterNamn)) { result = backend.CreatePerson(model); } else { result.success = "false"; result.message = "Missing parameters, check: Id, Persnr, Fname, Lname, Username"; result.errorcode = 600; } return(result); }