public ValidateAdminLoginRes ValidateAdminLogin(ValidateAdminLoginReq request)
        {
            string userName = request.UserName;
            string password = Utils.EncryptionUtils.CreateMD5(request.Password);

            AdminLogin login =
                _db.AdminLogins
                .Where(m => m.UserName == userName && m.Password == password).FirstOrDefault();

            if (login == null)
            {
                return(new ValidateAdminLoginRes()
                {
                    status = 0,
                    developerMessage = "Invalid UserName or Password"
                });
            }

            return(new ValidateAdminLoginRes()
            {
                status = 1,
                developerMessage = "Login Successful"
            });
        }
 public ValidateAdminLoginRes ValidateAdminLogin([FromBodyAttribute] ValidateAdminLoginReq request)
 {
     return(new AdminLoginService(_db).ValidateAdminLogin(request));
 }