public Update AddClause(IUpdateMember clause) { switch (clause) { case Set set: _set = set; break; case IWhere where: _whereClause = where; break; } return(this); }
public IActionResult Put(int id, [FromBody] MemberDto dto, [FromServices] IUpdateMember command) { dto.Id = id; _executor.ExecuteCommand(command, dto); return(NoContent()); }