protected JsonResult BuildResponseJsonResult(SMGenericResponse res, int code = 0)
 {
     return(new JsonResult(res)
     {
         StatusCode = code != 0 ? code : res.CheckStatus()
     });
 }
 protected ObjectResult BuildResponseObjectResult(SMGenericResponse res, int code = 0)
 {
     return(StatusCode(code != 0 ? code : res.CheckStatus(), res));
 }