Ejemplo n.º 1
0
        public void Put(Guid id, [FromBody] UserListModel userList)
        {
            var entity = _repository.GetById(id);

            entity.Update(userList.UserEmail, userList.Location, userList.Name,
                          userList.Description, userList.ImageUrl, userList.EventType, userList.StartTime, userList.EndTime);

            _repository.Edit(entity);
        }
Ejemplo n.º 2
0
        public void Put(String id, [FromBody] UserListModel userList)
        {
            var entity = _repository.GetById(id);

            entity.Update(userList.UserId, userList.Location, userList.Id, userList.FacebookId, userList.Name,
                          userList.Description, userList.StartTime, userList.EndTime, userList.ImageURL);

            _repository.Edit(entity);
        }
Ejemplo n.º 3
0
        public IActionResult Put(Guid id, [FromBody] UserListModel userList)
        {
            if (userList == null)
            {
                return(BadRequest());
            }

            var entity = _repository.GetById(id);

            if (entity == null)
            {
                return(NotFound());
            }

            entity.Update(userList.UserEmail, userList.Location, userList.Name,
                          userList.Description, userList.ImageUrl, userList.EventType, userList.StartTime, userList.EndTime);

            _repository.Edit(entity);

            return(Ok(entity));
        }