示例#1
0
        public HttpResponseMessage Get(int Id)
        {
            DebitDTO selectedDebit = service.getDebit(Id);

            if (selectedDebit == null)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, Id + sysLanguage.CompanyTitlesControllerStrings.id_title));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, selectedDebit));
        }
 public IActionResult ListDebit(DebitDTO debit)
 {
     service.getDebit(debit.EmployeeId);
     return(RedirectToAction("Index"));
 }