示例#1
0
        public ActionResult GetRequests()
        {
            var allRequest = _repository.GetRequests();
            List <RequestModel> objList = new List <RequestModel>();


            foreach (var request in allRequest)
            {
                RequestModel obj = new RequestModel();
                obj.CopyData(request);

                objList.Add(obj);
            }
            return(Ok(objList));
        }