예제 #1
0
        public ActionResult InsertUpdateDevice(int Insert_Update, int hdnDeviceId, int ClusterId, int ClientId, string SiteName, string DeviceIMEI, string DevicePhone, string DeviceCarrier, string DeviceType, string DeviceState, string EmailId, string SuperVisorPassword, string Superuserpassword, string WarrantyStartDate, string WarrantyEndDate, string DeviceAlertSMS1, string DeviceAlertSMS2, string DeviceAlertEmail1, string DeviceAlertEmail2, string Location)
        {
            List <string> Response = new List <string>();

            using (SecurityDBEntities entity = new SecurityDBEntities())
            {
                Response = entity.DeviceMInsert_Update_set(Insert_Update, hdnDeviceId, ClientId, ClusterId, SiteName, DeviceIMEI, DevicePhone, DeviceCarrier, DeviceType, DeviceState, SuperVisorPassword, Superuserpassword, EmailId, WarrantyStartDate, WarrantyEndDate, DeviceAlertSMS1, DeviceAlertSMS2, DeviceAlertEmail1, DeviceAlertEmail2, Location, Convert.ToInt32(Session["UserId"])).ToList();
            }
            return(Json(Response));
        }