From adff0d579e7e23fd78cce144b358f98737c91bcf Mon Sep 17 00:00:00 2001 From: transtrike Date: Fri, 2 Apr 2021 23:23:49 +0300 Subject: InsertProfilePic removed(useless, since every User has one at creation that gets replaced) --- src/Services/DevHive.Services/Services/ProfilePictureService.cs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/Services') diff --git a/src/Services/DevHive.Services/Services/ProfilePictureService.cs b/src/Services/DevHive.Services/Services/ProfilePictureService.cs index 0a4c824..1de2114 100644 --- a/src/Services/DevHive.Services/Services/ProfilePictureService.cs +++ b/src/Services/DevHive.Services/Services/ProfilePictureService.cs @@ -22,14 +22,6 @@ namespace DevHive.Services.Services this._cloudinaryService = cloudinaryService; } - public async Task InsertProfilePicture(ProfilePictureServiceModel profilePictureServiceModel) - { - ValidateProfPic(profilePictureServiceModel.ProfilePictureFormFile); - await ValidateUserExistsAsync(profilePictureServiceModel.UserId); - - return await SaveProfilePictureInDatabase(profilePictureServiceModel); - } - public async Task GetProfilePictureById(Guid id) { return (await this._profilePictureRepository.GetByIdAsync(id)).PictureURL; -- cgit v1.2.3