//hostingEnvironmentPath - physical path to WebAPI folder //requestUriLeftPart - URL public void DeleteUserAccount(string userEmail, string hostingEnvironmentPath, string requestUriLeftPart) { UserAccountInfo user = GetUserAccount(userEmail); lotPhotoOperationsHandler.DeleteAllUserPhotos(userEmail, hostingEnvironmentPath); UoW.UserAccounts.Delete(userEmail); UoW.SaveChanges(); }