public ActionResult <List <StaffRecordViewModel> > ListUndeleted() { var res = _bo.ListUnDeleted(); if (!res.Success) { return(InternalServerError()); } var list = new List <StaffRecordViewModel>(); foreach (var item in res.Result) { list.Add(StaffRecordViewModel.Parse(item)); } return(list); }