Пример #1
0
 public IActionResult GetInvitations([FromForm] RegisterDeatails _details)
 {
     try
     {
         Logger.Info("GetInvitations method is called...");
         var invitations = _saveData.GetInvitations(_details.UserId);
         return(Ok(invitations));
     }
     catch (Exception ex)
     {
         Logger.Error("Error has occured in GetInvitations method " + ex.Message);
         throw ex;
     }
 }
Пример #2
0
 public IActionResult GetYesProfiles([FromForm] RegisterDeatails _register)
 {
     try
     {
         Logger.Info("GetYesProfiles method is called....");
         var _lisfofyesProfiles = _saveData.GetYesProfiles(_register.UserId);
         return(Ok(_lisfofyesProfiles));
     }
     catch (Exception ex)
     {
         Logger.Error("Error has occured in GetYesProfiles method " + ex.Message);
         throw ex;
     }
 }
Пример #3
0
 public IActionResult ViewCardForUser([FromForm] RegisterDeatails _details)
 {
     try
     {
         Logger.Info("ViewCardForUser method is called....");
         var _userData = _saveData.ViewCardForUser(_details.UserId);
         return(Ok(_userData));
     }
     catch (Exception ex)
     {
         Logger.Error("Error has occured in ViewCardForUser method " + ex.Message);
         throw ex;
     }
 }
Пример #4
0
 public IActionResult UpdateCardThemeforUser([FromForm] RegisterDeatails _register)
 {
     try
     {
         Logger.Info("UpdateCardThemeforUser method is called...");
         _saveData.UpdateCardThemeforUser(_register.Theme, _register.UserId);
         return(Ok("Successfully Updated"));
     }
     catch (Exception ex)
     {
         Logger.Error("Error has occured in UpdateCardThemeforUser method " + ex.Message);
         throw ex;
     }
 }