public IHttpActionResult AddListing(WorkgroupModel model) { try { model.Users = new List <UserModel>(); model.Users.Add(new UserModel { Username = User.Identity.GetUserName() }); _service.AddWorkgroup(model); return(Ok()); } catch (Exception e) { Console.WriteLine(e); } return(InternalServerError()); }