private bool SetStarState(int titleId, bool newState) { //Create the Service var userId = Guid.Parse(User.Identity.GetUserId()); var service = new TitleService(userId); //Get the Title var detail = service.GetTitleById(titleId); //Creat the TitleEdit model instance with the new state var updatedTitle = new TitleEdit { TitleId = detail.TitleId, TitleName = detail.TitleName, //IsStarred = newState, DateEstablished = detail.DateEstablished, WrestlerId = detail.WrestlerId }; //Return a value indicating whether the update succeeded or not return(service.UpdateTitle(updatedTitle)); }