public IActionResult Put(int id, [FromForm] MemberResourceForUpdate member)
 {
     if (_repo.MemberRepository.Get(id) == null)
     {
         return(BadRequest());
     }
     if (Request.Form.Files.Count > 0)
     {
         member.ImageUrl = UploadPhoto();
     }
     _repo.MemberRepository.Update(member);
     Domain.Models.Resources.MemberResources item = _repo.MemberRepository.Get(id);
     return(Ok(item));
 }
 public IActionResult Get(int id)
 {
     Domain.Models.Resources.MemberResources item = _repo.MemberRepository.Get(id);
     return(Ok(item));
 }