public virtual Response <bool> SetStatus <T>(SetActiveStatusRequest <T> request) where T : DeletableEntity { Logger.LogTrace($"Entering SetStatus for {typeof(T).Name} for id: {request.Id} set it to {request.IsActive}. By user {Username}"); var response = new Response <bool>(); if (request.IsRequestInvalid(response, ContextInfo)) { return(response); } var command = new SetEntityIsActiveCommand <T> { WrappedRequest = WrapRequest(request) }; var result = Repository.ExecuteCommand(command); response.Merge(result); return(response); }