コード例 #1
0
 public static UserScope ToUserScope(this InsertOrUpdateUserScopeCommand command)
 {
     return(command.MapTo <InsertOrUpdateUserScopeCommand, UserScope>());
 }
コード例 #2
0
 public async Task <int> InsertOrUpdate([FromBody] InsertOrUpdateUserScopeCommand command)
 {
     command.CreatedBy = User.Identity.GetUserName();
     command.CreatedOn = DateTime.Now;
     return(await Mediator.Send(command));
 }