public async Task <IActionResult> AddOutlet([FromForm] OutletVM outletVM) { OutletDto outletDto = new OutletDto(); outletDto.Id = outletVM.Id; outletDto.Name = outletVM.Name; outletDto.StreetName = outletVM.StreetName; outletDto.Landmark = outletVM.Landmark; outletDto.OpeningDate = outletVM.OpeningDate.Date.Date; // outletDto.ReqVounteers = outletVM.ReqVolunteers; bool isSucess = await outletService.CreateOutlet(outletDto); return(RedirectToAction("Index")); }