import { Injectable } from '@angular/core';
import { ApiRequestService } from './api-request.service';

@Injectable({
  providedIn: 'root'
})
export class SequenceService {

  constructor(private apiRequest: ApiRequestService,) { }
  public getAll() {
    return this.apiRequest.get(`sureserve/sequence/seq`);
  }
  public getbyid(Id: any){
    return this.apiRequest.get(`sureserve/sequence/seq/${Id}`);
  }

  public create(data: any){
    return this.apiRequest.post(`sureserve/sequence/create`, data);
  }
// update
public update(id:any,data: any){
  return this.apiRequest.put(`sureserve/sequence/seq/${id}`, data);
}


public delete(id:any){
return this.apiRequest.delete(`sureserve/sequence/seq/${id}`);
}

}
