示例#1
0
        public async Task <IActionResult> UpdateEvent(int id, [FromBody] EventViewModel model)
        {
            Result result = await _eventGateway.Update(id, model.EventName,
                                                       model.Place, model.WeddingDate, model.MaximumPrice,
                                                       model.NumberOfGuestes, model.Note);//, model.CustomerId, model.OrganizerId );

            return(this.CreateResult(result));
        }
 public bool UpdateAnimalEvent(Event animalEvent)
 {
     return(eventGateway.Update(mapDomainToDtoObject(animalEvent)) > 0);
 }