protected async Task HandleValidSubmit() { Mapper.Map(EditEmployeeModel, Employee); Employee result = null; if (Employee.EmployeeId != 0) {
Both branches of the if and the else assign a value to result, so you don't need to initialize it with null. This null is never read and will just be overwritten anyway.
if
else
result
null