Example #1
0
        public ActionResult EditMember(int id)
        {
            var member = _crewMemberService.GetCrewMember(id);

            var viewModel = new CrewMemberViewModel()
            {
                CrewMemberId = id,
                FullName     = member.FullName,
                ProfessionId = member.ProfessionId,
            };

            return(View("UpdateMember", viewModel));
        }
 public IHttpActionResult GetCrewMember(int crewMemberId)
 {
     return(Ok(_service.GetCrewMember(crewMemberId)));
 }