public ActionResult Save(int collectionPointId)
 {
     using (var db = new ADProjectDb())
     {
         representativeService.UpdateCollectionPointForAllRequest(db, collectionPointId);
     }
     return(RedirectToAction("Index", "Representative"));
 }
Exemplo n.º 2
0
        public IHttpActionResult PutCollectionPoint(JsonContainer jsonContainer, int?employeeId)
        {
            using (var db = new ADProjectDb())
            {
                int collectionPointId = jsonContainer.CollectionPointId;
                representativeService.UpdateCollectionPointForAllRequest(db, collectionPointId, employeeId);

                return(Ok());
            }
        }