Exemple #1
0
        public async Task <IActionResult> AddWay(NewWayOfWorkModel model)
        {
            var way = BuildWay(model);

            await _wayOfWorkService.Create(way);

            return(RedirectToAction("Index", way.Id));
        }
Exemple #2
0
 private WayOfWork BuildWay(NewWayOfWorkModel model)
 {
     return(new WayOfWork
     {
         Name = model.Name,
         Description = model.Description,
         Progress = model.Progress
     });
 }