Example #1
0
 public static EventEntity MakeEventEntity(DeleteDepartmentCmd cmd)
 {
     return(new EventEntity {
         UserId = cmd.UserId,
         Body = new DepartmentDeletedEvt(cmd)
     });
 }
Example #2
0
        public async Task <IActionResult> Delete(long id)
        {
            var cmd        = new DeleteDepartmentCmd(id, HttpContext.UserId().Value);
            var department = await departmentRepo.Delete(cmd);

            return(Ok(department));
        }
Example #3
0
 public DepartmentDeletedEvt(DeleteDepartmentCmd cmd)
 {
     Id = cmd.Id;
 }